/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utility;

import java.sql.SQLException;
import model.Metric_User;
import org.hibernate.Session;

public class HibernateTest {

    public static void main(String[] args) throws SQLException {

        Metric_User metrica = new Metric_User();

        Session session = HibernateUtil.getSessionFactory().openSession();
        //Transaction t = session.beginTransaction();
        //session.save(user);
        //t.commit();
        //System.out.println("ID do Pessoa: " + user.getId());

        //user = (Usuario) session.load(Usuario.class, 1L);
        //System.out.println(user.getNome());

        session.close();

    }
}
